package com.yonyou.cyxdms.basedata.service.dto;

import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 获取产品树DTO
 *
 * @author ysj
 * @since 13:41 2019-09-24
 */
@ApiModel(value = "查询产品树", description = "查询产品树")
public class ProductTreeDTO extends BaseDTO implements Serializable {
    @NotBlank(message = "是否包含不限不能为空：1004")
    @ApiModelProperty(value = "是否包含不限")
    private Integer isUnlimited;
    @NotBlank(message = "返回类型不能为空")
    @ApiModelProperty(value = "返回类型,0:返回ID,1:返回CODE")
    private Integer type;
    @NotBlank(message = "返回层级不能为空")
    @ApiModelProperty(value = "返回几层数据")
    private Integer level;

    public Integer getIsUnlimited() {
        return isUnlimited;
    }

    public void setIsUnlimited(Integer isUnlimited) {
        this.isUnlimited = isUnlimited;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "ProductTreeDTO{" +
                "isUnlimited=" + isUnlimited +
                ", type=" + type +
                ", level=" + level +
                "} " + super.toString();
    }
}
